home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Compile Problems
- Sent: 5/24/96 9:40 PM
- Received: 5/28/96 8:25 AM
- From: Arni McKinley, motion@nbn.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- Hi Brad,
-
- You might want to look at CScrollEdit in the source files for the ODF
- example "Form" written by Laurent. It may help a bit. It's a subclass of
- FW_CEditView and adds scrolling, but not styled text. It should give you
- some clues on your problems with the notification.
-
- Arni
-
-
- >Hi,
- >
- >Here's what I'm trying to do. Basically, using FW_CEditText as a model
- >(but not a superclass), I'm trying to write a general scrolling,
- >styled text view in one class. It needs to be both a notifier and a
- >receiver.
- >
- >I copied the following out of the CW Message Box.
- >
- >
- >Error : illegal use of abstract class
- >('FW_MReceiver::HandleNotification(Environment*,constFW_CNotification&)')
- >
- >StyleEditView.cpp line 894 FW_CPrivWatcher(FW_PrivGetDeleteProc((const
- >CStyleEditView*)0))) CStyleEditView(ev), FW_PrivWatcher_Pop() )
- >
- >
- >The code the compiler chokes on looks like:
- >
- >//------------------------------------------------------------------------
- >// CStyleEditView::Create
- >//------------------------------------------------------------------------
- >
- >void* CStyleEditView::Create( FW_CReadableStream& stream,
- > FW_ClassTypeConstant
- >type )
- >{
- > FW_UNUSED(stream);
- > FW_UNUSED(type);
- >
- > FW_SOMEnvironment ev;
- > return FW_NEW(CStyleEditView, (ev)); // here's where it
- >chokes
- >}
- >
- >The start of my class definition looks like:
- >
- >class CStyleEditView : public FW_CView,
- > public FW_MReceiver,
- > public FW_MNotifier
- >{
- > public:
- > FW_DECLARE_CLASS
- > FW_DECLARE_AUTO(CStyleEditView)
- >
- >
- >and I have the following macros at the top of my .cpp file:
- >
- >FW_DEFINE_CLASS_M3(CStyleEditView, FW_CView, FW_MReceiver,
- >FW_MNotifier)
- >FW_DEFINE_AUTO(CStyleEditView)
- >
- >const FW_ClassTypeConstant LStyleEditView =
- >FW_TYPE_CONSTANT('S','t','E','V');
- >FW_REGISTER_ARCHIVABLE_CLASS( LStyleEditView,
- > CStyleEditView,
- > CStyleEditView::Create,
- > FW_CView::Read,
- > CStyleEditView::Destroy,
- > FW_CView::Write )
- >
- >
- >Any ideas? I've found it a little difficult to parse through all the
- >macros. I'm probably overlooking something very silly ;-).
- >
- >Thanks,
- >
- >Brad
- >
- >
- >
- >
- >Richard B. "Brad" Hutchings
- >General Partner,
- >Hutchings Software Development
- >
- >hsd@earthlink.net
- >
- >
- >Hi,
- >
- >Here's what I'm trying to do. Basically, using FW_CEditText as a model
- >(but not a superclass), I'm trying to write a general scrolling, styled
- >text view in one class. It needs to be both a notifier and a receiver.
- >
- >I copied the following out of the CW Message Box.
- >
- >
- >Error : illegal use of abstract class
- >('FW_MReceiver::HandleNotification(Environment*,constFW_CNotification&)')
- >
- >StyleEditView.cpp line 894 FW_CPrivWatcher(FW_PrivGetDeleteProc((const
- >CStyleEditView*)0))) CStyleEditView(ev), FW_PrivWatcher_Pop() )
- >
- >
- >The code the compiler chokes on looks like:
- >
- >//------------------------------------------------------------------------
- >// CStyleEditView::Create
- >//------------------------------------------------------------------------
- >
- >void* CStyleEditView::Create( FW_CReadableStream& stream,
- > FW_ClassTypeConstant
- >type )
- >{
- > FW_UNUSED(stream);
- > FW_UNUSED(type);
- >
- > FW_SOMEnvironment ev;
- > return FW_NEW(CStyleEditView, (ev)); // here's where it
- >chokes
- >}
- >
- >The start of my class definition looks like:
- >
- >class CStyleEditView : public FW_CView,
- > public FW_MReceiver,
- > public FW_MNotifier
- >{
- > public:
- > FW_DECLARE_CLASS
- > FW_DECLARE_AUTO(CStyleEditView)
- >
- >
- >and I have the following macros at the top of my .cpp file:
- >
- >FW_DEFINE_CLASS_M3(CStyleEditView, FW_CView, FW_MReceiver, FW_MNotifier)
- >FW_DEFINE_AUTO(CStyleEditView)
- >
- >const FW_ClassTypeConstant LStyleEditView = FW_TYPE_CONSTANT('S','t','E','V');
- >FW_REGISTER_ARCHIVABLE_CLASS( LStyleEditView,
- > CStyleEditView,
- > CStyleEditView::Create,
- > FW_CView::Read,
- > CStyleEditView::Destroy,
- > FW_CView::Write )
- >
- >
- >Any ideas? I've found it a little difficult to parse through all the
- >macros. I'm probably overlooking something very silly ;-).
- >
- >Thanks,
- >
- >Brad
- >
- >
- >
- >
- >Richard B. "Brad" Hutchings
- >General Partner,
- >Hutchings Software Development
- >
- >hsd@earthlink.net
-
-